package structure.facade.facade;

import structure.facade.obj.DVDPlayer;
import structure.facade.obj.Popcorn;

public class TheaterFacade {
    private final DVDPlayer dvdPlayer;
    private final Popcorn popcorn;

    public TheaterFacade() {
        this.dvdPlayer = DVDPlayer.getInstance();
        this.popcorn = Popcorn.getInstance();
    }

    public void ready() {
        dvdPlayer.turnOn();
        popcorn.makePopcorn();
    }

    public void play() {
        dvdPlayer.play();
        popcorn.eatPopcorn();
    }

    public void end() {
        dvdPlayer.turnOff();
    }
}
